import { deleteRequest, getRequest, postRequest } from '@/utils/request'
export const addComment = data => postRequest('/app/v1_0/comments', data) // 新增评论
export const getComment = data => getRequest('/app/v1_0/comments', data) // 获取评论列表
export const getCommentReply = data => getRequest('/app/v1_0/comments', data) // 获取文章评论列表
export const addCommentReply = data => postRequest('/app/v1_0/comments', data) // 添加文章评论回复
export const addCommentLike = data => postRequest('/app/v1_0/comment/likings', data) // 对文章评论进行点赞
export const deleteCommentLike = data => deleteRequest('/app/v1_0/comment/likings/' + data) // 对文章评论进行点赞
